//店铺管理模块API
import axios from '../axios'

//保存店铺
export const save = (data) => {
  return axios({
    url: '/shop/save',
    method: 'post',
    data: data
  })
};


//查询所有店铺
export const findAll = () => {
  return axios({
    url: "/shop/findAll",
    method: 'get'
  })
};

//删除店铺
export const batchDelete = (data) => {
  return axios({
    url: '/shop/delete',
    method: 'post',
    data: data
  })
};

//分页查询
export const findPage = (data) => {
  return axios({
    url: '/shop/findPage',
    method: 'post',
    data: data
  })
};
